﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WGM
{
    public partial class PageInformation : Page
    {
        public PageInformation()
        {
            InitializeComponent();
        }

        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            wb_codeplex.Navigate(new Uri("https://prototype85wgm.codeplex.com/"));
            wb_codeplex.Navigating += new NavigatingCancelEventHandler(browser_Navigating);
            wb_codeplex.Navigated += new NavigatedEventHandler(browser_Navigated);
        }

        void browser_Navigating(object sender, NavigatingCancelEventArgs e)
        {
            wb_codeplex.Margin = new Thickness(1000);
        }

        void browser_Navigated(object sender, NavigationEventArgs e)
        {
            wb_codeplex.Margin = new Thickness(0, 0, 0, 23);
        }

        private void textbox_link_MouseRightButtonUp(object sender, MouseButtonEventArgs e)
        {
            wb_codeplex.Margin = new Thickness(1000);
        }

        private void Grid_MouseEnter(object sender, MouseEventArgs e)
        {
            wb_codeplex.Margin = new Thickness(0, 0, 0, 23);
        }
    }
}
